package com.eastfair.venuebooking.dto;

import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ProjectDTO", description = "")
public class ProjectDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    public interface Check {}

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "请填写主键id", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称")
    @Size(max = 255, message = "项目名称长度不能超过255",groups = {Check.class})
    @NotEmpty(message = "项目名称不能为空",groups = {Check.class})
    private String projectName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 300, message = "备注长度不能超过300")
    private String remark;
    /**
     * 展会数量
     */
    @ApiModelProperty(value = "展会数量")
    private Integer exhibitionSum;
}
